package com.zoffy.zoffyapi.service.impl.inner;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zoffy.zoffyapi.service.UserService;
import com.zoffy.zoffyapicommon.model.entity.User;
import com.zoffy.zoffyapicommon.service.InnerUserService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class InnerUserServiceImpl implements InnerUserService {
    @Resource
    UserService userService;
    @Override
    public User getInvokeUser(String accessKey) {
        QueryWrapper<User> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("access_key",accessKey);
        User user = userService.getOne(queryWrapper);
        return user;
    }
}
